export const pieOption = {
    title: {
        text: '充电桩统计',
        left: 'left'
    },
    tooltip: {
        trigger: 'item'
    },
    legend: {
        bottom: '0',
        left: 'center',
        orient: 'horizontal'
    },
    graphic: [{ //环形图中间添加文字
        type: 'text', //通过不同top值可以设置上下显示
        left: '42%',
        top: '48%',
        style: {
            text: '',
            textAlign: 'center',
            fill: '#1E7CE8', //文字的颜色
            fontSize: 12,
            lineHeight: 16,
        }
    }],
    series: [
        {
            name: '',
            type: 'pie',
            radius: ['55%', '70%'],
            itemStyle: {
                borderRadius: 10,
                borderColor: '#fff',
                borderWidth: 2
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: '10',
                    fontWeight: 'bold'
                }
            },
            label: {
                show: true,
                // position: 'center'
            },
            labelLine: {
                show: true
            },
            data: [
            ]
        }
    ]
}


export const barOption = {
    title: {
        text: '充电桩故障排行',
        left: 'left'
    },
    tooltip: {
        trigger: 'item'
    },
    yAxis: {
        type: 'category',
        data: []
    },
    xAxis: {
        type: 'value'
    },
    series: [
        {
            data: [],
            type: 'bar',
            label:{
                show:true,
                position:'right'
            }
        }
    ]
}
